package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SUseItemMessage extends AbstractC2SMessage {
	//物品id
	public int itemId;
	public short x;
	public short y;

	public int getItemId() {
		return itemId;
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_USE_ITEM;
	}

	@Override
	public void readMessage() {
		this.itemId = readInt();
		this.x = readShort();
		this.y = readShort();
	}

}
